<template>
  <router-view :key='route.fullPath'></router-view>
</template>
<script setup>
	import {onMounted,ref,watch} from 'vue'
	import {useThemeStore} from '@/stores/modules/theme';
	import { useRoute,useRouter } from 'vue-router'
	const router = useRouter()
	 const route = useRoute()
	const themeStore = useThemeStore()
	// 获取pinia存储的主题色
	onMounted(()=>{
		document.querySelector('html').className = themeStore.theme
	})
	
</script>
<style scoped>

</style>
